home comics writing pictures archive about

ReadAddAndLoop.asm

Language: 8080 Assembly
Last Modified: 2022-11-13 1:21:06 AM UTC
File Size: 1019 bytes
http://www.penguinstew.ca/example/AltairAdder/ReadAddAndLoop.asm
;ReadAddandLoopProgramdisplaysresultofaddinglowandhighvaluefromswitchesusingaddresslights
ORG0000H
INFFH;0000:DBFFReadvaluefromswitches
MOVBA;0002:47Storevalue
ANI0FH;0003:E60FClearhighpart
MOVCA;0005:4FStorelowpart
MOVAB;0006:78Loadvalue
RRC;0007:0FRotatehightolow
RRC;0008:0F
RRC;0009:0F
RRC;000A:0F
ANI0FH;000B:E60FClearhighpart
ADDC;000D:81AddHightolow
MOVDA;000E:57MovetoHighaddressregister
LP:LDAXD;000F:1ALoaddisplayaddress
JMPLP;0010:C30F00Jumptodisplay
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16